package com.wits.platform.dao.custom;

import java.util.List;
import java.util.Map;

import org.springframework.data.domain.Page;

import com.wits.platform.entity.User;
import com.wits.platform.web.mvc.PageParam;

public interface UserDaoCustom {
	
	Page<User> findUserPageByRole(Map<String, Object> filterParams,PageParam page, String roleId);
	
	
	/**
	 * 查询没有特定角色的所有用户
	 * @param filterParams
	 * @param page
	 * @param roleId
	 * @return
	 */
	Page<User> findUserNoRole(Map<String, Object> filterParams,PageParam page, String roleId,String excludeUserId);
	

	/**
	 * 查询有某个角色的所有用户
	 * @param filterParams
	 * @param page
	 * @param roleId
	 * @return
	 */
	List<User> findUserByRole(Map<String, Object> filterParams, String roleId);
	
	

	void deleteInBatch(String ids);
	
	boolean isExist(User user);
	
	public List<User> findAllTeacherAndStudent();
}
